Matthias Clasen [Tue, 25 Aug 2020 19:13:39 +0000 (15:13 -0400)]
fontchooser: Populate the list incrementally
By adding 20 fonts / frame to the font list, we can
get the font chooser dialog to show up much faster.
This change gets the font chooser up in 265ms here.
Matthias Clasen [Tue, 25 Aug 2020 18:12:35 +0000 (14:12 -0400)]
Revert unintentional calendar change
This was unintentionally included in
c0efadc0f399d.
Matthias Clasen [Tue, 25 Aug 2020 12:52:36 +0000 (12:52 +0000)]
Merge branch 'adwaita-rounded-frames' into 'master'
Adwaita: Make frames rounded
See merge request GNOME/gtk!2476
nana-4 [Thu, 6 Aug 2020 15:54:40 +0000 (00:54 +0900)]
Adwaita: Make frames rounded
As per GNOME mockups.
Since GtkFrame now sets GTK_OVERFLOW_HIDDEN, we can round the frame
without corner overlapping.
This also adds some margin to the child label of GtkFrame to ensure it
will not be clipped by the rounded corners of the frame.
nana-4 [Tue, 25 Aug 2020 12:12:35 +0000 (21:12 +0900)]
Adwaita: Remove a shadow-type leftover
After commit
edae2a8dc500b7af29928e5eb6dfc305726ce6e0, frames always
draw frames. So, remove the unused frame.flat styling.
Emmanuele Bassi [Tue, 25 Aug 2020 11:18:35 +0000 (11:18 +0000)]
Merge branch 'wip/smcv/no-yelp' into 'master'
docs: Don't build Yelp manual for bundled gtk-doc subproject
See merge request GNOME/gtk!2475
Simon McVittie [Tue, 25 Aug 2020 09:42:40 +0000 (10:42 +0100)]
docs: Don't build Yelp manual for bundled gtk-doc subproject
This adds dependencies that would otherwise be unnecessary.
Signed-off-by: Simon McVittie <smcv@debian.org>
Matthias Clasen [Tue, 25 Aug 2020 02:37:57 +0000 (02:37 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #2979
See merge request GNOME/gtk!2474
Matthias Clasen [Mon, 24 Aug 2020 22:31:35 +0000 (18:31 -0400)]
text: Properly handle focus moving to a descendent
To discriminate between is-focus and contains-focus,
we need to use notify::is-focus. This makes sure
we don't get annoying warnings when the blink_cb
gets triggered on an unfocused entry.
Fixes: #2979
Matthias Clasen [Mon, 24 Aug 2020 22:31:08 +0000 (18:31 -0400)]
emojichooser: Grab focus on map
This is the right thing to do, since we have a visible
entry and want text input to go there.
Matthias Clasen [Mon, 24 Aug 2020 21:57:11 +0000 (21:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2473
Matthias Clasen [Mon, 24 Aug 2020 21:20:17 +0000 (17:20 -0400)]
colorchooser: Fix the add_palette api
When adding a custom palette, we need to arrange
for the custom section to stay at the bottom.
Maybe there should be a way to turn off custom
colors, too.
Matthias Clasen [Mon, 24 Aug 2020 21:19:36 +0000 (17:19 -0400)]
gtk-demo: Make the color picker demo less boring
Maybe the first ever use of the add_palette api.
Surprise, it doesn't work!
Bruce Cowan [Mon, 24 Aug 2020 18:39:24 +0000 (18:39 +0000)]
Update British English translation
Matthias Clasen [Mon, 24 Aug 2020 16:43:39 +0000 (16:43 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3081
See merge request GNOME/gtk!2472
Matthias Clasen [Mon, 24 Aug 2020 16:02:34 +0000 (12:02 -0400)]
Add reftests for center layout
Add a test that checks behavior with invisible children,
and another one that ensures we go back to box-like
layout if min-size is forced.
Matthias Clasen [Mon, 24 Aug 2020 15:52:08 +0000 (15:52 +0000)]
Merge branch 'unmapped-text' into 'master'
Unmapped text
See merge request GNOME/gtk!2466
Matthias Clasen [Mon, 24 Aug 2020 15:38:00 +0000 (11:38 -0400)]
Add a reftest for grid layouts
This tests that invisible children don't influence
the layout.
Matthias Clasen [Mon, 24 Aug 2020 14:58:18 +0000 (10:58 -0400)]
Add a reftest for box layouts
This tests that invisible children don't influence
the layout.
Matthias Clasen [Mon, 24 Aug 2020 03:15:57 +0000 (23:15 -0400)]
centerlayout: Some spacing-related fixes
Try to arrange for border-spacing to actually be
respected in the final layout.
Fixes: #3081
Matthias Clasen [Mon, 24 Aug 2020 13:31:06 +0000 (13:31 +0000)]
Merge branch 'wip/carlosg/start-spinbutton-start' into 'master'
gtkspinbutton: Group up/down button gestures with self
Closes #3085
See merge request GNOME/gtk!2471
Carlos Garnacho [Mon, 24 Aug 2020 12:45:42 +0000 (14:45 +0200)]
gtkspinbutton: Group up/down button gestures with self
We are adding click gestures on the up/down buttons, but can't let
the GtkButton built-in ones prevent ours to run.
As the saying goes, if you can't beat them, join them. Group the
spinbutton and GtkButton gestures together, so it's irrelevant which
gets called first and ends up winning.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3085
Daniel Mustieles [Mon, 24 Aug 2020 10:07:49 +0000 (12:07 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 24 Aug 2020 02:28:00 +0000 (02:28 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
docs: Some updates to GtkWidgetClass docs
See merge request GNOME/gtk!2470
Matthias Clasen [Mon, 24 Aug 2020 00:40:15 +0000 (20:40 -0400)]
docs: Some updates to GtkWidgetClass docs
Mention layout managers for vfuncs that are skipped
if you have one.
Goran Vidović [Sun, 23 Aug 2020 22:02:30 +0000 (22:02 +0000)]
Update Croatian translation
Goran Vidović [Sun, 23 Aug 2020 22:01:05 +0000 (22:01 +0000)]
Update Croatian translation
Rafael Fontenelle [Sun, 23 Aug 2020 21:52:38 +0000 (21:52 +0000)]
Update Brazilian Portuguese translation
Matthias Clasen [Sun, 23 Aug 2020 19:12:57 +0000 (15:12 -0400)]
text: Don't compute invisible char needlessly
There is no real reason to do expensive text layout
operations unless we need the invisible char because
the text's visibilty is FALSE.
Matthias Clasen [Sun, 23 Aug 2020 19:09:45 +0000 (15:09 -0400)]
text: Defer most recomputation until we're mapped
It doesn't make sense to update scroll positions or
im cursor locations while we're unmapped, and doing
so causes us to do expensive text measuring.
Matthias Clasen [Sun, 23 Aug 2020 21:36:07 +0000 (21:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2464
Matthias Clasen [Sun, 23 Aug 2020 21:07:37 +0000 (17:07 -0400)]
widget: Queue a draw when we need to
The code in gtk_widget_real_css_changed assumes that
queue_resize > queue_allocate > queue_draw, but the
second one is not really true. These days, we happily
keep reusing the same render node even when the child
allocation is changed.
So, if a css change has flags that tell us we should
redraw, we need to queue a draw, otherwise we might
end up reusing an outdated render node.
This fixes spinners staying visible when they stop
spinning, despite the theme setting their opacity
to 0.
Matthias Clasen [Sun, 23 Aug 2020 20:14:16 +0000 (16:14 -0400)]
Cosmetics
gtk_css_style_change_affects takes flags for a reason,
no need to call it multiple times.
Matthias Clasen [Fri, 21 Aug 2020 23:36:17 +0000 (19:36 -0400)]
build: Start using meson feature options
Use feature options for things that are optional features,
update the docs.
Visible changes here is that the 'print-backends' option
got renamed to 'print' to go better with 'media', and the
'tracker3' option got renamed to 'tracker'.
For options that have been changed into features, the
syntax now is -Dfeature=enabled or -Dfeature=disabled
or -Dfeature=auto.
Matthias Clasen [Sun, 23 Aug 2020 15:59:41 +0000 (11:59 -0400)]
Fix a leak in the font chooser widget
Contrary to what you may expect, pango_attr_font_desc_new()
is not transfer full, it makes a copy of the font description.
Matthias Clasen [Sun, 23 Aug 2020 16:26:35 +0000 (16:26 +0000)]
Merge branch 'fix_widget_factory_ui' into 'master'
fix position of radiobutton1
See merge request GNOME/gtk!2463
Ahmed Eldemery [Sun, 23 Aug 2020 15:39:17 +0000 (17:39 +0200)]
fix position of radiobutton1
Boyuan Yang [Sun, 23 Aug 2020 15:04:45 +0000 (15:04 +0000)]
Update Chinese (China) translation
Goran Vidović [Sun, 23 Aug 2020 11:14:23 +0000 (11:14 +0000)]
Update Croatian translation
Emin Tufan Çetin [Sat, 22 Aug 2020 21:26:01 +0000 (21:26 +0000)]
Update Turkish translation
Boyuan Yang [Sat, 22 Aug 2020 20:18:25 +0000 (20:18 +0000)]
Update Chinese (China) translation
Yuri Chornoivan [Sat, 22 Aug 2020 16:30:41 +0000 (16:30 +0000)]
Update Ukrainian translation
Jakub Steiner [Mon, 17 Aug 2020 08:00:29 +0000 (10:00 +0200)]
Adwaita: error labels insensitive & backdrop states
- address colored labels for the two states
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063#note_891618
Matthias Clasen [Sat, 22 Aug 2020 14:09:35 +0000 (14:09 +0000)]
Merge branch 'remove-unnecessary-frames' into 'master'
Remove unnecessary frames from some widgets
See merge request GNOME/gtk!2462
Andika Triwidada [Sat, 22 Aug 2020 13:19:15 +0000 (13:19 +0000)]
Update Indonesian translation
Piotr Drąg [Sat, 22 Aug 2020 13:17:37 +0000 (15:17 +0200)]
Update Polish translation
Piotr Drąg [Sat, 22 Aug 2020 11:48:19 +0000 (13:48 +0200)]
Update POTFILES.in and POTFILES.skip
nana-4 [Sat, 22 Aug 2020 00:30:28 +0000 (09:30 +0900)]
viewport: Remove unused frame
We've always removed this with Adwaita.
nana-4 [Sat, 22 Aug 2020 00:23:52 +0000 (09:23 +0900)]
placessidebar: Remove unused frame
We've always removed this with Adwaita.
nana-4 [Sat, 22 Aug 2020 00:18:31 +0000 (09:18 +0900)]
entrycompletion: Remove unnecessary frame
The popover already has a border as a frame. Don't create double
borders.
Matthias Clasen [Fri, 21 Aug 2020 23:58:09 +0000 (23:58 +0000)]
Merge branch 'new-sysprof' into 'master'
Port profiling to sysprof-collector api
See merge request GNOME/gtk!2457
Matthias Clasen [Fri, 21 Aug 2020 22:51:48 +0000 (18:51 -0400)]
Rename the profiler option
We don't support any profilers other than sysprof,
so name the option accordingly. While we are at it,
change it to a meson feature option, so
-Dprofiler=true becomes -Dsysprof=enabled
Matthias Clasen [Fri, 21 Aug 2020 22:36:45 +0000 (22:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2461
Matthias Clasen [Fri, 21 Aug 2020 22:28:29 +0000 (18:28 -0400)]
Alterative sysprof build support
Don't link libgtk against libsysprof. We only
need that for the test-performance binary.
Matthias Clasen [Fri, 21 Aug 2020 21:45:00 +0000 (17:45 -0400)]
ci: Use depth=1 for all subprojects
This helps reduce bandwidth requirements for ci.
Matthias Clasen [Fri, 21 Aug 2020 21:40:36 +0000 (17:40 -0400)]
inhibit: Pass valid arguments when Inhibiting
When we pass "" as reason, gnome-session responds
with a "Reason not specified" error. So, send
"Reason not specified" instead. Its true.
Christian Hergert [Fri, 21 Aug 2020 20:49:14 +0000 (13:49 -0700)]
testsuite: use SysprofProfiler for profiling
Instead of using sysprof-cli to profile subprocesses, this uses
libsysprof's SysprofProfiler directly so that we can avoid an indirect
subprocess as well as disabling the polkit nag.
To do this, we have to link against libsysprof instead of
libsysprof-capture. This is limited to the -Dbuild-tests=true and
-Dprofiler=true case.
Matthias Clasen [Fri, 21 Aug 2020 20:45:53 +0000 (20:45 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
layoutmanager: Fix the child-widget property
Closes #3080
See merge request GNOME/gtk!2460
Matthias Clasen [Fri, 21 Aug 2020 20:22:59 +0000 (16:22 -0400)]
Explicitly set grid positions in the ui file
We were outsmarted by a combination of gtk-builder-tool
removing default values and GtkGrid guessing good values
for omitted properties.
Fixes: #3080
Matthias Clasen [Fri, 21 Aug 2020 18:29:14 +0000 (14:29 -0400)]
layoutmanager: Fix the child-widget property
We were setting the child-widget property to the parent.
Oops.
Matthias Clasen [Fri, 21 Aug 2020 17:39:38 +0000 (13:39 -0400)]
fixup a counting error
Remember: 1, 2, 3, _4_, 5...
Matthias Clasen [Fri, 21 Aug 2020 17:32:12 +0000 (17:32 +0000)]
Merge branch 'codespell-changes' into 'master'
*: Fix spelling mistakes found by codespell
See merge request GNOME/gtk!2459
Matthias Clasen [Fri, 21 Aug 2020 17:24:29 +0000 (13:24 -0400)]
wip: Port test-performance to use sysprof-cli
This isn't working for the tests yet, since it
needs a single-application mode that we don't
quite have in sysprof-cli.
Matthias Clasen [Thu, 20 Aug 2020 21:46:53 +0000 (17:46 -0400)]
Update the docs around profiling
Mention sysprof-cli, and stop mentioning GTK_TRACE_FD.
Matthias Clasen [Wed, 19 Aug 2020 22:49:34 +0000 (18:49 -0400)]
Port tracing to the sysprof collector api
Use the new sysprof collector api to do tracing.
Matthias Clasen [Wed, 19 Aug 2020 20:26:51 +0000 (16:26 -0400)]
application: Drop support for profiler activation
Drop support for the org.gnome.Sysprof3.Profiler
D-Bus interface. It is not really used, and if
we don't expose it, we can simplify our profiler
infrastructure.
Matthias Clasen [Fri, 21 Aug 2020 14:49:31 +0000 (14:49 +0000)]
Merge branch 'fontconfig-speedup' into 'master'
Trigger fontconfig initialization early
See merge request GNOME/gtk!2454
Björn Daase [Fri, 21 Aug 2020 13:34:38 +0000 (15:34 +0200)]
docs: Reword GtkTreeView question 28
Björn Daase [Fri, 21 Aug 2020 13:33:12 +0000 (15:33 +0200)]
docs: Reword gtk4-update-icon-cache description
Björn Daase [Fri, 21 Aug 2020 12:41:13 +0000 (14:41 +0200)]
*: Fix spelling mistakes found by codespell
Matthias Clasen [Fri, 21 Aug 2020 13:22:48 +0000 (13:22 +0000)]
Merge branch 'builder-tool-boxes' into 'master'
builder-tool: Rewrite GtkBox
See merge request GNOME/gtk!2447
Jason Francis [Mon, 17 Aug 2020 01:32:21 +0000 (21:32 -0400)]
builder-tool: Rewrite GtkBox
Rewrite expand/fill properties on GtkBox to
hexpand/halign/vexpand/valign on the child widget.
Rewrite GtkVBox and GtkHBox to GtkBox, setting the orientation
property.
Added a test for boxes.
Goran Vidović [Thu, 20 Aug 2020 21:47:34 +0000 (21:47 +0000)]
Update Croatian translation
Jakub Steiner [Thu, 20 Aug 2020 20:58:31 +0000 (20:58 +0000)]
Merge branch 'wip/jimmac/rich-list-styling' into 'master'
Adwaita: rich-list styling
See merge request GNOME/gtk!2456
Jakub Steiner [Mon, 17 Aug 2020 11:18:07 +0000 (13:18 +0200)]
Adwaita: rich-list styling
FIXME: why is the second list in Demo>List Box>Controls taller?
https://gitlab.gnome.org/GNOME/gtk/-/issues/3073
Matej Urbančič [Thu, 20 Aug 2020 16:14:54 +0000 (18:14 +0200)]
Updated Slovenian translation
Matthias Clasen [Thu, 20 Aug 2020 14:03:41 +0000 (14:03 +0000)]
Merge branch 'frame-overflow-hidden' into 'master'
frame: Set GTK_OVERFLOW_HIDDEN
See merge request GNOME/gtk!2455
nana-4 [Thu, 6 Aug 2020 15:54:34 +0000 (00:54 +0900)]
frame: Set GTK_OVERFLOW_HIDDEN
It doesn't really make sense for the frame to allow drawing children
outside of it.
Marek Kasik [Thu, 20 Aug 2020 11:40:04 +0000 (13:40 +0200)]
printing: Use original names for remote CUPS printers
CUPS uses resource paths in the form of "printers/printer_name"
or "classes/class_name" so it is enough to remove the "printers/"
or "classes/" prefix and use the string behind it as a name.
There was recently introduced a wrong check for the prefix.
This commit fixes it in the way it was originally intended.
Matthias Clasen [Wed, 19 Aug 2020 18:20:41 +0000 (14:20 -0400)]
Trigger fontconfig initialization early
Add a pango call to create the fontmap already in gtk_init.
This will let us hide the cost of FcInit() (which on font-heavy
systems can be ~100ms) in a thread, on the pango side.
Matthias Clasen [Thu, 20 Aug 2020 00:30:37 +0000 (00:30 +0000)]
Merge branch 'replace-hardcoded-margins' into 'master'
tooltip & placessidebar: Replace hard-coded margins with theme
See merge request GNOME/gtk!2444
Goran Vidović [Wed, 19 Aug 2020 21:51:29 +0000 (21:51 +0000)]
Update Croatian translation
Matthias Clasen [Wed, 19 Aug 2020 20:46:18 +0000 (20:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2453
Timm Bäder [Sat, 15 Aug 2020 15:03:46 +0000 (17:03 +0200)]
label: Try to avoid a pango_layout_get_extents call
Measuring text is quite expensive, so only do this if really necessary.
Matthias Clasen [Sat, 15 Aug 2020 12:26:28 +0000 (08:26 -0400)]
widget-factory: Improve the error states example
Elaborate the error state handling, and make it show
delayed states in GtkSwitch too.
sicklylife [Tue, 18 Aug 2020 10:03:51 +0000 (10:03 +0000)]
Update Japanese translation
sicklylife [Tue, 18 Aug 2020 09:46:29 +0000 (09:46 +0000)]
Update Japanese translation
Baurzhan Muftakhidinov [Tue, 18 Aug 2020 07:20:38 +0000 (07:20 +0000)]
Update Kazakh translation
Andika Triwidada [Tue, 18 Aug 2020 04:50:25 +0000 (04:50 +0000)]
Update Indonesian translation
Fran Dieguez [Mon, 17 Aug 2020 16:47:55 +0000 (16:47 +0000)]
Update Galician translation
Baurzhan Muftakhidinov [Mon, 17 Aug 2020 10:26:54 +0000 (10:26 +0000)]
Update Kazakh translation
Jakub Steiner [Mon, 17 Aug 2020 08:21:58 +0000 (08:21 +0000)]
Merge branch 'wip/jimmac/error-labels-insensitive' into 'master'
Adwaita: error labels insensitive & backdrop states
See merge request GNOME/gtk!2449
Jakub Steiner [Mon, 17 Aug 2020 08:00:29 +0000 (10:00 +0200)]
Adwaita: error labels insensitive & backdrop states
- address colored labels for the two states
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063#note_891618
Piotr Drąg [Sun, 16 Aug 2020 09:56:23 +0000 (11:56 +0200)]
Update Polish translation
nana-4 [Sat, 15 Aug 2020 13:45:39 +0000 (22:45 +0900)]
placessidebar: Replace hard-coded margins with theme
So we can easily adjust the widget sizing in the theme.
nana-4 [Sat, 15 Aug 2020 13:44:03 +0000 (22:44 +0900)]
tooltip: Replace hard-coded margins with theme
So we can easily adjust the widget sizing in the theme.
Matthias Clasen [Sat, 15 Aug 2020 12:49:29 +0000 (12:49 +0000)]
Merge branch 'gtkassistant_docstring' into 'master'
gtkassistant: Minor docstring wording changes
See merge request GNOME/gtk!2442
Timm Bäder [Sat, 15 Aug 2020 10:49:02 +0000 (10:49 +0000)]
Merge branch 'slider-button-style-class-again' into 'master'
pathbar: Set .slider-button style class to slider buttons again
See merge request GNOME/gtk!2443
nana-4 [Sat, 15 Aug 2020 09:31:32 +0000 (18:31 +0900)]
pathbar: Set .slider-button style class to slider buttons again
This was set in the .ui file that no longer exists, so we need to set it
again here.
Holger Knust [Sat, 15 Aug 2020 09:20:03 +0000 (05:20 -0400)]
gtkassistant: Minor docstring wording changes
Changed the wording to improve the clarity of the documentation. Fixed grammar issue ("spllited")